package com.atguigu.multiReading;

public class demo15 {
    public static void main(String[] args) {
        System.out.println(fac(5));
    }
    public static long fac(int n){
        return (n>1?n*fac(n-1):1);
    }
}
